Resource URL: /platform/<<version=4>>/performance/workload-categories/<WORKLOAD-CATEGORY>/workloads/<WORKLOAD>

    Overview: This resource represents a single "workload" selected for the
              workload category specified in the URI. A workload is a selection
              of specific values for each element in its category.  These
              values are "pinned" and statistics for them will always be
              collected and available for viewing at
              /statistics/current?key=node.accounting.workloads.category.<category-id>,
              even if they are not among the top resource-consuming
              combinations of their category's elements.  For example, a
              category with the elements "zone_name" and "protocol" might have
              a workload with the selection "zone_name:System",
              "protocol:nfs4".  Now performance statistics about nfs v4 usage
              in the System zone are "pinned" and will always be collected and
              available, in addition to statistics about the top
              resource-consuming zone_name/protocol combinations.

     Methods: GET, PUT, DELETE

********************************************************************************

Method GET: Retrieve the workload.

       URL: GET
            /platform/<<version=4>>/performance/workload-categories/<WORKLOAD-CATEGORY>/workloads/<WORKLOAD>

There are no query arguments for this method.

GET response body schema:
{
  "type": [
    {
      "additionalProperties": false, 
      "type": "object", 
      "description": "A list of errors that may be returned.", 
      "properties": {
        "errors": {
          "items": {
            "additionalProperties": false, 
            "type": "object", 
            "description": "An object describing a single error.", 
            "properties": {
              "field": {
                "type": "string", 
                "description": "The field with the error if applicable."
              }, 
              "message": {
                "type": "string", 
                "description": "The error message."
              }, 
              "code": {
                "type": "string", 
                "description": "The error code."
              }
            }
          }, 
          "type": "array"
        }
      }
    }, 
    {
      "additionalProperties": false, 
      "type": "object", 
      "properties": {
        "workloads": {
          "minItems": 0, 
          "items": {
            "type": "object", 
            "description": "Once an workload category is configured, then a workload can be observed.", 
            "properties": {
              "workload_selector": {
                "type": "object", 
                "description": "Unique workload.", 
                "properties": {
                  "username": {
                    "type": "string", 
                    "description": "username"
                  }, 
                  "local_address": {
                    "type": "string", 
                    "description": "Local IPv4, IPv6 address"
                  }, 
                  "protocol": {
                    "enum": [
                      "nfs3", 
                      "nfs4", 
                      "nlm", 
                      "smb1", 
                      "smb2"
                    ], 
                    "type": "string", 
                    "description": "The protocol used for the request"
                  }, 
                  "remote_address": {
                    "type": "string", 
                    "description": "Client IPv4, IPv6 address, or hostname."
                  }, 
                  "zone_name": {
                    "type": "string", 
                    "description": "The zone name"
                  }
                }
              }, 
              "name": {
                "type": "string", 
                "description": "The name of the workload. User specified.", 
                "maxLength": 80
              }, 
              "creation_time": {
                "type": "integer", 
                "description": "Timestamp of when the workload was pinned."
              }, 
              "error": {
                "type": "string", 
                "description": "If this field is present, then there was an error fetching the workload configuration."
              }, 
              "workload_category_id": {
                "type": "integer", 
                "description": "Identifies the associated configured workload category."
              }, 
              "id": {
                "type": "integer", 
                "description": "The workload ID. Unique and automatically assigned."
              }
            }
          }, 
          "type": "array", 
          "maxItems": 4294967295
        }
      }
    }
  ]
}

********************************************************************************

Method PUT: Modify the workload.

       URL: PUT
            /platform/<<version=4>>/performance/workload-categories/<WORKLOAD-CATEGORY>/workloads/<WORKLOAD>

There are no query arguments for this method.

PUT request body schema:
{
  "type": "object", 
  "description": "Once an workload category is configured, then a workload can be observed.", 
  "properties": {
    "name": {
      "type": "string", 
      "description": "The name of the workload. User specified.", 
      "maxLength": 80
    }
  }
}

There is no JSON response body for this method.

********************************************************************************

Method DELETE: Delete the workload.

          URL: DELETE
               /platform/<<version=4>>/performance/workload-categories/<WORKLOAD-CATEGORY>/workloads/<WORKLOAD>

There are no query arguments for this method.

There is no JSON response body for this method.
